const getAssetsFile = (url: string) => {
    return new URL(`../assets/images/${url}`, import.meta.url).href
}

/**
 * px转换rem
 */
export function pxToRem(px: number | string) {
    if (px == '100%') {
        return px
    } else {
        return `${(px as number) / 37}rem`
    }
}
export { getAssetsFile }
